<h2>Sign Up: Step 2</h2>

<% if flash[:notice] %>
	<div id="notice"><%= flash[:notice] %></div>
<% end %>

<h3>What we got:</h3>
<p>
	<label>Your Name:</label> <%= @new_player[:first_name] + " " + @new_player[:last_name] %><br>
	<label>Your Faculty:</label> <%= @new_player[:faculty] %><br>
	<label>Your Email:</label> <%= @new_player[:email] %> <br>
</p>
<h3>What we need:</h3>
	<% form_for :new_player, 
		:url => { :action => :upload_image }, 
		:html => { :multipart => true } do |form| %>
		
		<label>Your Picture:</label><br>
		<div id="player_photo"><%= if @new_player.image? then image_tag(@new_player.public_filename) end %></div>
		<%= form.hidden_field :id %>
		<%= form.file_field :uploaded_data %>
		<%= submit_tag "Upload Image" %>
	<% end %>
	
	<% form_for :new_player, :url => { :action => :step3 }, :method => :post do |form| %>	
	<label>Your Alias:</label> <%= form.text_field :alias %><br>
	<%= form.hidden_field :id %>
	<small>This is how others will see you in games. You can change this at any time.</small><br>
	<br>
	<%= submit_tag "TAKE ME TO STEP THREE!" %>
	<% end %>
</p>

